package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 *
 *
 * @author code-generate
 * @date 2021-09-17
 */
@Data
@DbTable(tableName = "t_video_safe_record")
public class VideoSafeRecord extends BaseEntity {
    /**
     * 设备Id
     */
    @DbTableField(columnName = "c_device_id", dbType = DbTypeEnum.INTEGER)
    public Integer deviceId ;

    /**
     * 设备号
     */
    @DbTableField(columnName = "c_device_code", dbType = DbTypeEnum.VARCHAR)
    public String deviceCode ;

    /**
     * 事件类型名称
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.VARCHAR)
    public String type ;

    /**
     * 事件具体地址
     */
    @DbTableField(columnName = "c_address", dbType = DbTypeEnum.VARCHAR)
    public String address ;

    /**
     * 事件抓拍图片
     */
    @DbTableField(columnName = "c_img_src", dbType = DbTypeEnum.VARCHAR)
    public String imgSrc ;

    /**
     * 识别时间
     */
    @DbTableField(columnName = "c_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime date ;

    /**
     * 经度
     */
    @DbTableField(columnName = "c_lng", dbType = DbTypeEnum.DOUBLE)
    public Double lng ;

    /**
     * 维度
     */
    @DbTableField(columnName = "c_lat", dbType = DbTypeEnum.DOUBLE)
    public Double lat ;

    /**
     * 经度
     */
    @DbTableField(columnName = "c_lng_gcj02", dbType = DbTypeEnum.DOUBLE)
    public Double lngGcj02 ;

    /**
     * 维度
     */
    @DbTableField(columnName = "c_lat_gcj02", dbType = DbTypeEnum.DOUBLE)
    public Double latGcj02 ;
    /**
     * 文件Id
     */
    @DbTableField(columnName = "c_file_id", dbType = DbTypeEnum.VARCHAR)
    public String fileId ;
}
